const s = "el-header ${title},other ${ox}]";

const data = {
  title: "滴滴滴",
  ox: "三生三世",
};

const res = s.replace(/\${\w+}/g, (m) => {
  const value = data[m.slice(2, -1)];
  return value;
});
console.log(res);

const vnode = [
  {
    type: "span",
    children: "入院记录需在入院后",
  },
  {
    type: "input",
    placehode: "请输入",
    value: "",
    name: "xx",
  },{
    type: "span",
    children: "小时内完成",
  }
]
